package com;

import java.io.*;

public class Test07 {
    public static void main(String[] args) throws IOException {
        BufferedWriter bw = new BufferedWriter(new FileWriter("HomeWork15\\dir\\目标文件4"));
        BufferedReader br = new BufferedReader(new FileReader("HomeWork15\\dir\\cc.txt"));

        String line;
        while ((line = br.readLine()) != null) {
            bw.write(line);
            bw.newLine();
            bw.flush();

        }
        bw.close();
        br.close();
    }
}
